package com.keshihao.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Mr.Ke
 * @create 2020-05-17-17:14
 */
@Component
public class ConstantVodUtils implements InitializingBean {

    // 读取配置文件内容
    @Value("${aliyun.vod.file.keyid}")
    private String keyid;

    @Value("${aliyun.vod.file.keysecret}")
    private String keysecret;

    public static String KEY_ID;
    public static String KEY_SECRET;

    // 定义公开静态常量
    @Override
    public void afterPropertiesSet() throws Exception {

        KEY_SECRET = keysecret;
        KEY_ID = keyid;

    }
}
